package cn.school.attendance.classes.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


/**
 * 缺勤和请假学生信息
 */
@Data
@NoArgsConstructor
public class LeaveAndNotArrivedStudentInfoVo {

    @TableField(value = "studentId")
    private Long studentId;
    @TableField(value = "studentName")
    private String studentName;
    @TableField(value = "studentPicture")
    private String studentPicture;
    //请假开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date leaveStartTime;
    //请假结束时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date leaveEndTime;

    public LeaveAndNotArrivedStudentInfoVo(Long studentId, String studentName, String studentPicture) {
        this.studentId = studentId;
        this.studentName = studentName;
        this.studentPicture = studentPicture;
    }
}
